using Commons.Models.Definitions;
using Commons.Models.Settings.Dtos.Stats;
using Commons.Models.Stats;

namespace Commons.Models.Settings.Mappers.Stats
{
	public class SimpleStatMapper : IMapper<SimpleStatDto, SimpleStatDefinition>
	{
		public SimpleStatDefinition Map (SimpleStatDto config)
		{
			return new SimpleStatDefinition(StatUnit.GetByName(config.Name), config.Initial);
		}
	}
}

